WP2FA\Authenticator\Authentication A

Total Complexity 52
Dependencies 8
Dependents 7
Total lines 534
Lines of code 238
Logical lines of code 125
Comment lines 210
Methods 23
Properties 3

Methods 23

Method Rating Maintainability Complexity Lines of code
base32_decode()
S
54 4 20
base32_encode()
S
58 4 15
pack64()
S
58 4 14
is_valid_authcode()
S
58 3 15
validate_token()
S
62 3 11
get_apps()
S
49 1 39
calc_totp()
S
56 2 16
abssort()
S
66 3 8
get_code()
S
63 3 10
get_user_token()
S
67 3 7
decrypt_key_if_needed()
S
69 3 6
get_google_qr_code()
S
59 2 13
is_valid_key()
S
66 2 8
validate_base32_string()
S
69 2 6
generate_key()
S
64 2 9
get_user_totp_key()
S
63 2 10
get_login_attempts_instance()
S
71 2 6
user_has_token()
S
67 2 8
generate_token()
S
72 1 5
get_base32_characters()
S
80 1 3
delete_user_totp_key()
S
79 1 3
delete_token()
S
79 1 3
check_number_of_attempts()
S
79 1 3